//引入express
var express = require('express');
var app = express();

app.get('/',function(req,res){

	//当前服务器所在路径 ————dirname
	res.sendfile(__dirname + '/index.html');
})



app.get('/logo',function(req,res){

	var username = req.query.username;
	var password = req.query.password;
	res.send('用户名:'+username+'密码是:'+password);
})







var server = app.listen(8888,function(){
	console.log('服务已启动');
})